<%@page import="ext.mango.functions.Func"%>
<%@page import="ext.mango.aa.eo.EOAAUser"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%String ctx = request.getContextPath();%>
<%
String theme = "ext-all-gray.css";
String lang = Func.getLanguage(request);
EOAAUser usr = (EOAAUser)request.getSession().getAttribute(EOAAUser.class.getName());
if (usr == null){
%><script type="text/javascript">
var win = window;
while(win.top != win) {
	win = win.top;
}
win.location.href="<%=ctx%>";
</script><%return;}else {theme = (String)request.getSession().getAttribute("theme");}%>
<style type="text/css">
#pageloading{
    height:auto;
    position:absolute;
    left:45%;
    top:40%;
    padding:2px;
    z-index:20001;
}
#pageloading .pageloading-indicator{
    background:white;
    color:#444;
    font:13px Helvetica, Arial, sans-serif;
    height:auto;
    margin:0;
    padding:10px;
}
.icon-tool {background-image: url(<%=ctx%>/common/images/cog.png) !important;}
.icon-plugin {background-image: url(<%=ctx%>/common/images/plugin.gif) !important;}
.icon-lock {background: url(<%=ctx%>/common/images/hmenu-lock.gif) !important;}
.icon-leaf {background-image: url(<%=ctx%>/common/images/leaf.gif) !important;}
.icon-add {background-image: url(<%=ctx%>/common/images/add.png) !important;}
.icon-delete {background-image: url(<%=ctx%>/common/images/delete.png) !important;}
.icon-edit-user {background-image: url(<%=ctx%>/common/images/edit-user.gif) !important;}
.icon-group {background-image: url(<%=ctx%>/common/images/group16.gif) !important;}
.icon-grid {background-image:url(<%=ctx%>/common/images/grid.png) !important;}
.icon-user-green {background-image:url(<%=ctx%>/common/images/user_green.png) !important;}
.icon-theme {background-image: url(<%=ctx%>/common/images/theme_swatch.png) !important;}
.icon-stop {background-image: url(<%=ctx%>/common/images/stop.png) !important;}
.icon-detail {background-image: url(<%=ctx%>/common/images/detail.png) !important;}
.icon-bar {background-image: url(<%=ctx%>/common/images/chart_bar.png) !important;}
.icon-pie {background-image: url(<%=ctx%>/common/images/chart_pie.png) !important;}
</style>
<link  rel="stylesheet" type="text/css" href="<%=ctx%>/common/extjs/resources/css/<%=theme%>">
<script type="text/javascript" src="<%=ctx%>/common/extjs/ext-all.js"></script>
<script type="text/javascript">
var ctx = "<%=ctx%>";
Ext.Loader.setConfig({enabled: true});
Ext.Loader.setPath('Ext.ux',  '<%=ctx%>/common/extjs/ux');
Ext.require(['*']);
Ext.BLANK_IMAGE_URL= "<%=ctx%>/common/extjs/resources/s.gif";
function getPath(src){return ctx + src;}
function isBlank(str){if(str==null||str=="")return true;return false;}
var hideMask = function () {
    Ext.get('pageloading').remove();
    Ext.fly('pageloading-mask').animate({
        opacity:0,
        remove:true
    });
};
Ext.defer(hideMask, 250);
</script>
<script type="text/javascript" src="<%=ctx%>/common/extjs/local/ext-lang-<%=lang%>.js"></script>